<?php
session_start();
if((isSet($_SESSION['login']))&&($_SESSION['login']==true)){
	header('location:main.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="../style/style.css" />
	<title>C2group admin page</title>
</head>

<body>
	<form name="f" action="include/loginProc.php" method="post">
		<table align="center">
			<tr>
				<td></td>
				<td><label id="lpTitle">Login panel</label></td>
			</tr>
			<tr>
				<td>User</td>
				<td><input type="text" name="user" /></td>
			</tr>
			<tr>
				<td>Password</td>
				<td><input type="password" name="pass" /></td>
			</tr>
			<tr>
				<td></td>
				<td><button type="submit" >Login</button>&nbsp;&nbsp;<button type="reset" >Reset</button></td>
			</tr>
			<tr>
			<td colspan="2"><span class="warning">
			<?php 
				if(isSet($_SESSION['error'])){
					 echo $_SESSION['error']; 
					 $_SESSION['error']="";
				}	  
			?>
			</span></td>	
			</tr>
		</table>
	</form>	
</body>

</html>	